package com.apiit.webserviceclient.activities;

import com.apiit.webserviceclient.R;
import com.apiit.webserviceclient.R.layout;
import com.apiit.webserviceclient.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.widget.TextView;

public class LevelCcourses extends Activity {
	
	TextView course1;
	TextView course2;
	TextView course3;
	TextView course4;
	TextView course5;
	TextView course6;
	TextView course7;
	TextView course8;
	TextView course9;
	TextView course10;
	TextView course11;
	TextView course12;
	TextView course13;
	TextView course14;
	TextView course15;
	TextView course16;
	TextView course17;
	TextView course18;
	TextView course19;
	TextView course20;
	TextView course21;
	TextView course22;
	TextView course23;
	TextView course24;
	TextView course25;
	TextView course26;
	TextView course27;
	TextView course28;
	TextView course29;
	TextView course30;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_level_ccourses);
		
		course1 = (TextView) findViewById(R.id.txtcourese1);
		course2 = (TextView) findViewById(R.id.txtcourese2);
		course3 = (TextView) findViewById(R.id.txtcourese3);
		course4 = (TextView) findViewById(R.id.txtcourese4);
		course5 = (TextView) findViewById(R.id.txtcourese5);
		course6 = (TextView) findViewById(R.id.txtcourese6);
		course7 = (TextView) findViewById(R.id.txtcourese7);
		course8 = (TextView) findViewById(R.id.txtcourese8);
		course9 = (TextView) findViewById(R.id.txtcourese9);
		course10 = (TextView) findViewById(R.id.txtcourese10);
		course11 = (TextView) findViewById(R.id.txtcourese11);
		course12 = (TextView) findViewById(R.id.txtcourese12);
		course13 = (TextView) findViewById(R.id.txtcourese13);
		course14 = (TextView) findViewById(R.id.txtcourese14);
		course15 = (TextView) findViewById(R.id.txtcourese15);
		course16 = (TextView) findViewById(R.id.txtcourese16);
		course17 = (TextView) findViewById(R.id.txtcourese17);
		course18 = (TextView) findViewById(R.id.txtcourese18);
		course19 = (TextView) findViewById(R.id.txtcourese19);
		course20 = (TextView) findViewById(R.id.txtcourese20);
		course21 = (TextView) findViewById(R.id.txtcourese21);
		course22 = (TextView) findViewById(R.id.txtcourese22);
		course23 = (TextView) findViewById(R.id.txtcourese23);
		course24 = (TextView) findViewById(R.id.txtcourese24);
		course25 = (TextView) findViewById(R.id.txtcourese25);
		course26 = (TextView) findViewById(R.id.txtcourese26);
		course27 = (TextView) findViewById(R.id.txtcourese27);
		course28 = (TextView) findViewById(R.id.txtcourese28);

		Intent intename = getIntent();
		String courseval1 = intename.getStringExtra("course1").replaceAll(" &amp;", "and");
		String courseval2 = intename.getStringExtra("course2").replaceAll(" &amp;", "and");
		String courseval3 = intename.getStringExtra("course3").replaceAll(" &amp;", "and");
		String courseval4 = intename.getStringExtra("course4").replaceAll(" &amp;", "and");
		String courseval5 = intename.getStringExtra("course5").replaceAll(" &amp;", "and");
		String courseval6 = intename.getStringExtra("course6").replaceAll(" &amp;", "and");
		String courseval7 = intename.getStringExtra("course7").replaceAll(" &amp;", "and");
		String courseval8 = intename.getStringExtra("course8").replaceAll(" &amp;", "and");
		String courseval9 = intename.getStringExtra("course9").replaceAll(" &amp;", "and");
		String courseval10 = intename.getStringExtra("course10").replaceAll(" &amp;", "and");
		String courseval11 = intename.getStringExtra("course11").replaceAll(" &amp;", "and");
		String courseval12 = intename.getStringExtra("course12").replaceAll(" &amp;", "and");
		String courseval13 = intename.getStringExtra("course13").replaceAll(" &amp;", "and");
		String courseval14 = intename.getStringExtra("course14").replaceAll(" &amp;", "and");
		String courseval15 = intename.getStringExtra("course15").replaceAll(" &amp;", "and");
		String courseval16 = intename.getStringExtra("course16").replaceAll(" &amp;", "and");
		String courseval17 = intename.getStringExtra("course17").replaceAll(" &amp;", "and");
		String courseval18 = intename.getStringExtra("course18").replaceAll(" &amp;", "and");
		String courseval19 = intename.getStringExtra("course19").replaceAll(" &amp;", "and");
		String courseval20 = intename.getStringExtra("course20").replaceAll(" &amp;", "and");
		String courseval21 = intename.getStringExtra("course21").replaceAll(" &amp;", "and");
		String courseval22 = intename.getStringExtra("course22").replaceAll(" &amp;", "and");
		String courseval23 = intename.getStringExtra("course23").replaceAll(" &amp;", "and");
		String courseval24 = intename.getStringExtra("course24").replaceAll(" &amp;", "and");
		String courseval25 = intename.getStringExtra("course25").replaceAll(" &amp;", "and");
		String courseval26 = intename.getStringExtra("course26").replaceAll(" &amp;", "and");
		String courseval27 = intename.getStringExtra("course27").replaceAll(" &amp;", "and");
		String courseval28 = intename.getStringExtra("course28").replaceAll(" &amp;", "and");


		
		course1.setText(courseval1);
		course2.setText(courseval2);
		course3.setText(courseval3);
		course4.setText(courseval4);
		course5.setText(courseval5);
		course6.setText(courseval6);
		course7.setText(courseval7);
		course8.setText(courseval8);
		course9.setText(courseval9);
		course10.setText(courseval10);
		course11.setText(courseval11);
		course12.setText(courseval12);
		course13.setText(courseval13);
		course14.setText(courseval14);
		course15.setText(courseval15);
		course16.setText(courseval16);
		course17.setText(courseval17);
		course18.setText(courseval18);
		course19.setText(courseval19);
		course20.setText(courseval20);
		course21.setText(courseval21);
		course22.setText(courseval22);
		course23.setText(courseval23);
		course24.setText(courseval24);
		course25.setText(courseval25);
		course26.setText(courseval26);
		course27.setText(courseval27);
		course28.setText(courseval28);

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.level_ccourses, menu);
		return true;
	}

}
